Filter hook 'ngettext_with_context_{$domain}'
in WP Core File wp-includes/l10n.php at line 573
Description
Filters the singular or plural form of a string with gettext context for a domain. The dynamic portion of the hook name, `$domain`, refers to the text domain.
Occurrences
Filename |
Line Number |
wp-includes/l10n.php |
573 |
Parameters
Type |
Name |
Description |
string |
$translation |
Translated text. |
string |
$single |
The text to be used if the number is singular. |
string |
$plural |
The text to be used if the number is plural. |
int |
$number |
The number to compare against to use either the singular or plural form. |
string |
$context |
Context information for the translators. |
string |
$domain |
Text domain. Unique identifier for retrieving translated strings. |
PHP Doc
/**
* Filters the singular or plural form of a string with gettext context for a domain.
*
* The dynamic portion of the hook name, `$domain`, refers to the text domain.
*
* @since 5.5.0
*
* @param string $translation Translated text.
* @param string $single The text to be used if the number is singular.
* @param string $plural The text to be used if the number is plural.
* @param int $number The number to compare against to use either the singular or plural form.
* @param string $context Context information for the translators.
* @param string $domain Text domain. Unique identifier for retrieving translated strings.
*/